|
Hi,
I didn't upload my class files.Now it is working.
Thanks
jith
|
|
|
|
|
Hi,
Can anyone help me plz.I am trying to do UrlMapping for my project the Problem I am facing is that if I give a Url with query string eg: href="www.abc.com/myfolder/mudocuments/abc.aspx?id=1&cat= how do I convert it to href="www.abc.com/myfolder/mudocuments/abc.aspx/id/1/cat//
Plz note that if a query string is empty it should convert it to '/'(eg:cat see the difference above) and how do I retrieve the parameters in the querystring passed on the redirected page. Please help me if anyone has tried this send me ur code I would really appreciate it.
Regards,
Maggi
|
|
|
|
|
using Request.QueryStrings["..."] to get value from query string and redirect to your target page then...
<< >>
|
|
|
|
|
hi,
your code will not work becoz I want to change my query string in /id/22/category/1 kind of format with the Url,once it is changed to this format ? will dissappear so QueryStrings will not work. thanks any way for the tip.
Regards
Maggi
|
|
|
|
|
|
good afternoon!
(In c# ,asp.net project.)
Tab index is working fine in IE but giving problem in MOzilla firefox.
I have one login popup window in Master page which is at the top right corner and is visible on number of pages till user doesn't login.
When we entered username and password before doing any other functionality autotab is working fine .
But if we start with registration form and in between we click on login button on master page we get popup window for login, now after entering username and pressing tab focus goes to submit button instead of password textbox.
Please suggest some solution over this.
Thank you.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
i am having a file uploader control . i am uploading a file . i am taking path by mpath. I have to come out of one folder usign mpath. How
it has to be done. pls tell.
string m_path;
m_path = Server.MapPath(".").ToString();
m_path = m_path + "\\" + "PoliciesProcedures";
|
|
|
|
|
what problem when using Server.Mappath...??
<< >>
|
|
|
|
|
ritu4321 wrote: I have to come out of one folder usign mpath. How
Double dot will come out of the current folder
Try server.mappath("../currentpath")
|
|
|
|
|
Hello Everyone,
I want to display columns in crystal report dynamically. Suppose I have col1,col2 and col3 in crystal report I want to show col1,col2 and col3 sometimes and col1 and col2 othertimes depending on some criteria.
How can I accomplish this task? Please give me suggestion.
Mehedi Hasan
|
|
|
|
|
You have to create Formula for the Fields.....The formula will be based on your criteria on which you want to display results or not....
Suppose you want nothing to show in Column1 if the Field1(to be shown in Column1) value is 0
then make a Formula.In Formula Editor under the "Suppress" Tab write the following Code..
If myTable.Field1='0' then<br />
true
now if your query returns 0 in Field1 Column1 will be blank...
But the thing to remember,though I am not very sure,is you probably cannot change the design of you report,I mean to say you cannot suppress Column1 with its Caption(if any) and other things....there will be a blank space...
Tirtha
Miles to go before I sleep
|
|
|
|
|
Hi!
I am trying to create a user control.I have added a new "Web User Control" item and set the "Build Action" to "Compile" for the .ascx file. I have not added any web control or HTML control. When I buld the project it gives an error " Character is not valid ".
The only code in .ascx file is:
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="WebUserControl1.ascx.vb" Inherits="LakshmiBrooke.WebUserControl1" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
(without any line breaks)
Can somebody help in rectifying this error?
Thanks.
|
|
|
|
|
Quest07 wrote: TargetSchema="http://schemas.microsoft.com/intellisense/ie5"
remove it and add any server control and register it on your aspx page
then rebuild solution i think it will work
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
hello friends..I want to create url like www.website.com/iamdking .when I type this url in browser ..i must be redirected to my profile.suppose profile.aspx.How to do this..Plz help me..
|
|
|
|
|
Hi,
I wanted to display some values in the datagrid as links but I don't know how.
If I write the code like this:
...
dtDocuments.Columns.Add("XML TreeView");
dtDocuments.Columns.Add("XML privzeto");
foreach(DataRow dr in dtDocuments.Rows)
{
dr["XML TreeView"] = "Prikaži";
dr["XML privzeto"] = "Prikaži";
}
dgDocument.DataSource = dtDocuments;
dgDocument.DataBind();
...
it displays a text
|
|
|
|
|
here I see it displays as links, but when I try to run the script it doesn't display links in the dataGrid
|
|
|
|
|
There was some mistake in my previous question,pls consider new one:
for url rewriting i wrote following code in web.config
<configSections>
<!-- The <configSections> element must contain a <section> tag for the <RewriterConfig> section element.
The type of the section handler is RewriterConfigSerializerSectionHandler, which is responsible for
deserializing the <RewriterConfig> section element into a RewriterConfig instance... --><b></b>
<section name="RewriterConfig" type="URLRewriter.Rewriter,URLRewriter" />
</configSections>
<RewriterConfig>
<Rules>
<!-- Rules for Content Displayer -->
<RewriterRule>
<url>/urlrewriter/UserList\.aspx</url>
<rewrite>Userdefault.aspx</rewrite>
</RewriterRule>
</Rules >
</RewriterConfig>
Then i took one class file named Rewriter.cs in which i wrote this code:
namespace URLRewriter
{
public class Rewriter : IConfigurationSectionHandler
{
protected XmlNode _oRules = null;
protected Rewriter()
{
}
public string GetSubstitution(string zPath)
{
Regex oReg;
foreach (XmlNode oNode in _oRules.SelectNodes("Rules"))
{
oReg = new Regex(oNode.SelectSingleNode("url/text()").Value);
Match oMatch = oReg.Match(zPath);
if (oMatch.Success)
{
return oReg.Replace(zPath,
oNode.SelectSingleNode("rewrite/text()").Value);
}
}
return zPath;
}
public static void Process()
{
Rewriter oRewriter = (Rewriter)ConfigurationSettings.GetConfig("system.web/RewriterConfig");
string zSubst = oRewriter.GetSubstitution(HttpContext.Current.Request.Path);
if (zSubst.Length > 0)
{
HttpContext.Current.RewritePath(zSubst);
}
}
#region Implementation of IConfigurationSectionHandler
public object Create(object parent, object configContext, XmlNode section)
{
_oRules = section;
// TODO: Compile all Regular Expressions
return this;
}
#endregion
}
}
And at last i add a glabal.asax file and wrote following code in this file:
protected void Application_BeginRequest(Object sender, EventArgs e)
{
URLRewriter.Rewriter.Process();
}
But when i tried to run it,it gives an error i.e. Object reference not set to an instance of an object in Rewriter.cs at
Rewriter oRewriter = (Rewriter)ConfigurationSettings.GetConfig("system.web/RewriterConfig");
Anybody help me...
Thanks in Advance.
|
|
|
|
|
for url rewriting i wrote following code in web.config
<configsections>
<rewriterconfig>
<rules>
<rewriterrule>
<url>/urlrewriter/UserList\.aspx
<rewrite>Userdefault.aspx
Then i took one class file named Rewriter.cs in which i wrote this code:
namespace URLRewriter
{
public class Rewriter : IConfigurationSectionHandler
{
protected XmlNode _oRules = null;
protected Rewriter()
{
}
public string GetSubstitution(string zPath)
{
Regex oReg;
foreach (XmlNode oNode in _oRules.SelectNodes("Rules"))
{
oReg = new Regex(oNode.SelectSingleNode("url/text()").Value);
Match oMatch = oReg.Match(zPath);
if (oMatch.Success)
{
return oReg.Replace(zPath,
oNode.SelectSingleNode("rewrite/text()").Value);
}
}
return zPath;
}
public static void Process()
{
Rewriter oRewriter = (Rewriter)ConfigurationSettings.GetConfig("system.web/RewriterConfig");
string zSubst = oRewriter.GetSubstitution(HttpContext.Current.Request.Path);
if (zSubst.Length > 0)
{
HttpContext.Current.RewritePath(zSubst);
}
}
#region Implementation of IConfigurationSectionHandler
public object Create(object parent, object configContext, XmlNode section)
{
_oRules = section;
// TODO: Compile all Regular Expressions
return this;
}
#endregion
}
}
And at last i add a glabal.asax file and wrote following code in this file:
protected void Application_BeginRequest(Object sender, EventArgs e)
{
URLRewriter.Rewriter.Process();
}
But when i tried to run it,it gives an error i.e. Object reference not set to an instance of an object in Rewriter.cs at
Rewriter oRewriter = (Rewriter)ConfigurationSettings.GetConfig("system.web/RewriterConfig");
|
|
|
|
|
I am new to Microsoft AJAX. I have created a simple UI to just list, add , edit and update using GridView. The code works fine when the page to directly called. I have another page with IFRAME, where the AJAX page it called inside the IFRAME.
Now, I getting a JScript Error message,
Sys.ArgumentOutOfRangeException.....
Anybody help me...
Thanks in Advance.
|
|
|
|
|
This pronblem is solved by setting the frameborder=0 or frameborder=1, before I set it as frameborder=no.
|
|
|
|
|
hello,
i got error message while creating cotrol in visual studio 2003(ASP.NET)
|
|
|
|
|
Hi All,
what is GUID ?
Thanks
|
|
|
|
|
|
Hi All,
What is the Difference between Unit Testing and UserAcceptanceTesting.
Tell me Briefly what we have to do in UserAcceptanceTesting.It is also related to Testing pages ?
Thanks inAdvance
|
|
|
|
|
siddisagar wrote: What is the Difference between Unit Testing and UserAcceptanceTesting.
Unit testing is testing the individual units of an application, preferably in isolation. This ensures that all (or almost all) the code is exercised and producing the correct results.
User Acceptance Testing is just as the name suggests. It is testing performed by the users so that they may determine if the software is acceptable.
siddisagar wrote: Tell me Briefly what we have to do in UserAcceptanceTesting
Give the software to the users. Ask them to perform the tasks that they wish to do with the software. Get them to report on anything that does not work.
|
|
|
|